package com.lgh.ibs.constants.myenum;

public enum IbsMavenRootTypeEnum {
	Root(1,"Root"),
	Children(2,"Children");
	
	private IbsMavenRootTypeEnum(Integer code, String name) {
		this.code = code;
		this.name = name;
	} 
	
	public static String getName(Integer code) {
		for (IbsMavenRootTypeEnum c : IbsMavenRootTypeEnum.values()) {
			if (c.code.equals(code)) {
				return c.name;
			}
		}
		return null;
	}
	//子目录
	private Integer code;
	private String name;
	
	public Integer getCode() {
		return code;
	}

	public String getName() {
		return name;
	}
	
}
